package com.ygq.springboot;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

//@SpringBootApplication标注这个类是一个SpringBoot的应用 使启动类下的所有资源被导入
@SpringBootApplication
//@MapperScan扫描mapper包
@MapperScan("com.ygq.springboot.mapper")
public class DemoApplication {

    public static void main(String[] args) {
        //run()静态方法
        SpringApplication.run(DemoApplication.class, args);
    }

}
